function handleData(x: string): string[];
function handleData(x: number): number[];
function handleData(x: any): any {
    if (typeof x === "string") {
        return x.split("");
    } else {
        return x.toString().split("").map((item: any) => Number(item));
    }
}